<% if @user -%>
<div id="resetpassword">
	<% form_for :user do |f|-%>
		<%= pass_field_for f,:passwd, @user,{:text=>"密码",:required=>true}%>
		<%= pass_field_for f,:passwd_confirmation, @user,{:text=>"确认密码",:required=>true}%>
		<div class="submit">
			<%= submit_tag "提交" -%>
		</div>
	<% end -%>
</div>
<% end -%>